﻿@model ClevelandFreeClinic.Models.Announcement

@{
    ViewBag.Title = "Edit";
}
<style type="text/css">
    #EditAnnouncement {
        background-color: white;
        text-align: left;
        font-family: Arial;
        font-weight: 100;
        padding:40px;
        border: 2px solid gray;
    
    }

</style>
<h2 style="color:#fff;">Edit an Announcement</h2>
<div id="EditAnnouncement">


@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        @Html.HiddenFor(model => model.AnnouncementId)

        <div class="editor-field">

            @Html.TextBoxFor(model => model.AnnouncmentText, new { style = "width: 600px; height:200px;" })
            @Html.ValidationMessageFor(model => model.AnnouncmentText)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Display, new {style = "font-weight: 500;" })
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.Display, new {style = "width: 30px; height:30px;"})
            @Html.ValidationMessageFor(model => model.Display)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
